import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      name: 'wode',
      path: '/wode',
      component: () => import('../view/test/wode.vue')
    },
		{
			name: 'login',
			path: '/login',
			component: () =>import('../view/test/login.vue')
		},
		{
			name:'stuManager',
			path:'/stuManager',
			component: () =>import ('../view/test/stuManager.vue'),
			redirect:'/stuManager/information',
			meta:{
				loginRequest: true
			},
			children:[
				{
					path:'information',
					component:()=>import('../view/detail_page/information.vue')
				},
				{
					path:'seek_house',
				},
				{
					path:'record_solve',
				},
				{
					path:'record_history',
					
				}
			]
		}
  ]
})
